import { Entity, ManyToOne, PrimaryGeneratedColumn, Column } from 'typeorm'
import { ShopRole } from './shop-role.entity'

// 订单
@Entity()
export class ShopRoleRight {
  @PrimaryGeneratedColumn()
  id: number

  @Column()
  right: string

  @ManyToOne(type => ShopRole, role => role.rights)
  role: ShopRole
}
